﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/// <summary>
/// angular js验证属性
/// </summary>
namespace NFinal.Advanced
{
    /// <summary>
    /// AngularJS 验证属性
    /// </summary>
    public class AngularValidation
    {
       
    }
    /// <summary>
    /// 必填项
    /// </summary>
    public class ngRequiredAttribute:Attribute
    {
        public ngRequiredAttribute()
        { }
    }
    /// <summary>
    /// 最小长度
    /// </summary>
    public class ngMinlengthAttribute : Attribute
    {
        public ngMinlengthAttribute(int length)
        { }
    }
    /// <summary>
    /// 最大长度
    /// </summary>
    public class ngMaxlengthAttribute : Attribute
    {
        public ngMaxlengthAttribute(int length)
        { }
    }
    /// <summary>
    /// 正则
    /// </summary>
    public class ngPatternAttribute : Attribute
    {
        public ngPatternAttribute(string pattern)
        { }
    }
    /// <summary>
    /// 自动清空格
    /// </summary>
    public class ngTrimAttribute : Attribute
    {
        public ngTrimAttribute()
        { }
    }
    /// <summary>
    /// 自定义验证
    /// </summary>
    public class ngTrueValueAttribute : Attribute
    {
        public ngTrueValueAttribute(string expression)
        { }
    }
    /// <summary>
    /// 自定义验证
    /// </summary>
    public class ngFalseValueAttribute : Attribute
    {
        public ngFalseValueAttribute(string expression)
        { }
    }
    public class ngValueAttribute : Attribute
    {
        public ngValueAttribute()
        { }
    }
}
